package com.weixing.mall.provider.api.fallback;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.base.wrapper.ResultUtil;
import com.weixing.mall.provider.api.erp.entity.InDepot;
import com.weixing.mall.provider.api.erp.entity.OutDepot;
import com.weixing.mall.provider.api.erp.vo.ResultSkuInfoVo;
import com.weixing.mall.provider.api.service.ErpFeign;
import org.springframework.stereotype.Component;

/**
 * @Author: kfc
 * @Description: <br/>
 * Date:Create in 2019/10/9 15:50
 * @Modified By:
 */
@Component
public class ErpFeignFallback implements ErpFeign {

    @Override
    public Result<ResultSkuInfoVo> selectDepotSkuStockByPage(String depotid, String styleid, String sku) {
        return ResultUtil.error("erp同步异常");
    }

    @Override
    public Result addOutDepot(OutDepot outDepot) {
        return ResultUtil.error("ERP出库异常");
    }

    @Override
    public Result addInDepot(InDepot inDepot) {
        return ResultUtil.error("ERP出库异常");
    }
}
